package composition;

import java.util.ArrayList;
import java.util.List;

public class Person {
	private String name;
	
	private List<Role> children = new ArrayList<Role>();

	public List<Role> getChildren() {
		return children;
	}

	public void setChildren(List<Role> children) {
		this.children = children;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void addRole(Role role){
		children.add(role);
	}

	public void removeRole(Role role){
		children.remove(role);
	}
}
